<template>
  <div style="text-align: center;width: 100%;">
    <el-empty description=" ">
      <h2 data-text="404">404</h2>
      <h4>啊呀~页面不存在!</h4>
      <p>您可以先检查网址，然后重新输入或给我们反馈问题。</p>
      <el-button type="primary" round @click="goback">返回工作区</el-button>
    </el-empty>
  </div>
</template>

<script>
export default {
  methods: {
    gohome() {
      location.href = '/';
    },
    goback() {
      this.$router.push({ path: '/home' });
    }
  }
};
</script>

<style scoped lang="scss">
h4 {
  font-size: 20px;
  color: #333;
}

p {
  font-size: 12px;
  color: #999;
  margin: 20px 0;
}

h2 {
  font-size: 70px;
  position: relative;
  letter-spacing: 1px;
  z-index: 3;
}

h2:after {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  text-shadow: -1px 0 red;
  top: 0;
  color: #000;
  background: #f6f8f9;
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
  width: 100%;
}

h2:before {
  content: attr(data-text);
  position: absolute;
  left: -2px;
  text-shadow: 1px 0 blue;
  top: 0;
  color: #000;
  background: #f6f8f9;
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
  width: 100%;
}
</style>
